package org.qiyu.live.bank.provider.service.impl;

import jakarta.annotation.Resource;
import org.qiyu.live.bank.provider.dao.mapper.IQiyuCurrencyTradeMapper;
import org.qiyu.live.bank.provider.dao.po.QiyuCurrencyTradePO;
import org.qiyu.live.bank.provider.service.IQiyuCurrencyTradeService;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-11-03
 * Time: 20:39
 */
@Service
public class QiyuCurrencyTradeServiceImpl implements IQiyuCurrencyTradeService {

    @Resource
    private IQiyuCurrencyTradeMapper tradeMapper;

    @Override
    public void insertOne(Long userId, int num, int type) {
        QiyuCurrencyTradePO tradePO = new QiyuCurrencyTradePO();
        tradePO.setUserId(userId);
        tradePO.setType(type);
        tradePO.setNum(num);
        tradeMapper.insert(tradePO);
    }
}